<?php
	function oh($module = "kernel") {			
		global $oh;
		
		$module = oh_module_parse($module);
		
		if (oh_module_require($module['interface'])) {
			// what do?	
		} else {
			oh_message("Error: module not found.");
		}

		if (function_exists($module['function'])) {
			$oh['module'][] = $module['name'];
			$return = $module['function']($module['token']);
			//array_pop($oh['module']);			
			return $return;
		} else {
			oh_message("Funzione mancante");
		}		
	}
?>
